package b4.config
{
	public class LayerItemConfigPort extends LayerItemConfig
	{
		public var destTownIndex:int;
		public var destLayer:int;
		public var destX:int;
		public var destY:int;
		
		public function LayerItemConfigPort(itemStrs:Array=null)
		{
			super(itemStrs);
			if (itemStrs != null)
			{
				destTownIndex = parseInt(itemStrs[2]);
				destLayer = parseInt(itemStrs[3]);
				destX = parseInt(itemStrs[4]);
				destY = parseInt(itemStrs[5]);
			}
		}
		
		override public function serializeExport():String
		{
			var serialStr:String = super.serializeExport();
			serialStr += "," + destTownIndex;
			serialStr += "," + destLayer;
			serialStr += "," + destX;
			serialStr += "," + destY;
			return serialStr;
		}
		
	}
}